/*
 * @Description:
 * @Version: 1.0
 * @Author: liguansheng
 * @Date: 2022-08-25 14:01:36
 * @LastEditors: liguansheng
 * @LastEditTime: 2022-08-25 15:24:54
 */
export interface IApiScopeProperty {
  apiScopeId: string
  key: string
  value: string
}
export interface IApiUserClaim {
  apiScopeId: string
  type: string
}
export interface IApiScope {
  description: string
  displayName: string
  emphasize: boolean
  enabled: boolean
  extraProperties: {}
  id: string
  name: string
  properties: IApiScopeProperty[]
  required: boolean
  showInDiscoveryDocument: boolean
  userClaims: IApiUserClaim[]
}

export interface ICreateProperty {
  key: string
  value: string
}
export interface ICreateUserClaim {
  type: string
}
export interface ICreateApiScope {
  name: string
  description: string
  displayName: string
  emphasize: boolean
  enabled: boolean
  required: boolean
  showInDiscoveryDocument: boolean
  properties: ICreateProperty[]
  userClaims: ICreateUserClaim[]
}

export interface IUpdateApiScope {
  name: string
  description: string
  displayName: string
  emphasize: boolean
  enabled: boolean
  required: boolean
  showInDiscoveryDocument: boolean
  properties: ICreateProperty[]
  userClaims: ICreateUserClaim[]
}
